package com.ourfox.a4.ui.exception;

public class UserManagerException extends Exception{
	
	private static final long serialVersionUID = 1L;   
    
    private int errorCode;   
  
    public int getErrorCode() {   
        return errorCode;   
    }   
  
    public void setErrorCode(int errorCode) {   
        this.errorCode = errorCode;   
    }   
       
    public UserManagerException(int errorCode) {   
        super(MessageHelper.getExceptionByErrorCode(errorCode));   
        this.errorCode = errorCode;   
    }   
       
    public UserManagerException(int errorCode, Throwable throwable) {   
        super(MessageHelper.getExceptionByErrorCode(errorCode), throwable);   
        this.errorCode = errorCode;   
    }   
       
    public UserManagerException(String message, Throwable throwable) {   
        super(message, throwable);   
    }   
       
    public UserManagerException(String message) {   
        super(message);   
    }   
       
    public String getErrorMessage(int errorCode) {   
        return MessageHelper.getExceptionByErrorCode(errorCode);   
    }   



}
